package com.caochenlei.table;

public class OrderSymbolTableTest {
    public static void main(String[] args) {
        OrderSymbolTable<Integer, String> orderSymbolTable = new OrderSymbolTable<>();

        orderSymbolTable.put(1, "刘备");
        orderSymbolTable.put(3, "关羽");
        orderSymbolTable.put(2, "张飞");

        System.out.println(orderSymbolTable.size());
        System.out.println(orderSymbolTable.isEmpty());
        System.out.println(orderSymbolTable.keySet());
        System.out.println(orderSymbolTable.valueSet());
        for (Integer key : orderSymbolTable.keySet()) {
            System.out.println(key + "：" + orderSymbolTable.get(key));
        }
        for (Integer key : orderSymbolTable.keySet()) {
            orderSymbolTable.delete(key);
        }
        System.out.println(orderSymbolTable.size());
        System.out.println(orderSymbolTable.isEmpty());
        System.out.println(orderSymbolTable.keySet());
        System.out.println(orderSymbolTable.valueSet());
    }
}
